XCHANGE

Syntax: XCHANGE (a1 TO a2, c1 TO c2)
Location: BTool

The function XCHANGE replaces all occurrences of byte c1 by c2 from memory locations a1 to a2 inclusive.

The function counts the exchanged bytes and returns the sum.

PRINT XCHANGE(memory,memory+length-1,13,10)

CROSS-REFERENCE:
SEARCH, COPY_B, COPY_W, COPY_L
